from configparser import ConfigParser
from utils.handle_path import *


class Handle_conf(ConfigParser):
    def __init__(self,filename):
        super(Handle_conf,self).__init__()
        self.filename = filename
        self.read(self.filename,encoding='utf-8')
    def get_value(self, section: object, option: object) -> object:
        value =self.get(section,option)
        return value
if __name__ == '__main__':
    pass
    filename = os.path.join(conf_path,'conf.ini')
    h = Handle_conf(filename)
    a = h.get_value('env','url')
    print(a)

